package com.miniso.robot.bean;

import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author guojunwang
 * @date 2021-10-18 16:15
 */
@Getter
@NoArgsConstructor
@JsonNaming( PropertyNamingStrategies.SnakeCaseStrategy.class )
public class MarkdownMessage extends Message{
    private final String msgtype = "markdown";
    private Map<String,String> markdown = new HashMap(8);


    public void setContext(String context){
        markdown.put("context",context);
    }
}
